package com.guoxue.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IGiveAwayRecordDao;
import com.guoxue.domain.GiveAwayRecordVo;
import com.guoxue.service.IGiveAwayRecordService;
@Service
public class GiveAwayRecordServiceImpl  implements IGiveAwayRecordService{
	
	@Resource
	private IGiveAwayRecordDao  giveAwayRecordDao;
	
	@Override
	public void saveGiveAwayRecord(GiveAwayRecordVo giveAwayRecordVo) {
		giveAwayRecordDao.saveGiveAwayRecord(giveAwayRecordVo);
	}

	@Override
	public List<GiveAwayRecordVo> getGiveAwayRecordList(Integer giveUid,Integer tapesId,Integer start,Integer total) {
		return giveAwayRecordDao.getGiveAwayRecordList(giveUid,tapesId,start,total);
	}

	@Override
	public Long getGiveAwayRecordTotal(int uid) {
		return giveAwayRecordDao.getGiveAwayRecordTotal(uid);
	}

	@Override
	public GiveAwayRecordVo getGiveAwayRecord(int uid) {
		return giveAwayRecordDao.getGiveAwayRecord(uid);
	}

	@Override
	public List<GiveAwayRecordVo> getGiveAwayRecordList(Integer uid, Integer tapesId) {
		return giveAwayRecordDao.getGiveAwayRecordList(uid,tapesId);
	}

	@Override
	public Long getGiveAwayRecordPopularityValueTotal(int uid) {
		return giveAwayRecordDao.getGiveAwayRecordPopularityValueTotal(uid);
	}

	@Override
	public Map<String,String> getGiveAwayRecordGoodsTotal(int uid) {
		return giveAwayRecordDao.getGiveAwayRecordGoodsTotal(uid);
	}

}
